﻿using Domain.Entity.sys;
using Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Application.DictTypeService
{
    public interface IDictTypeService
    {
        //分页查询字典类型信息
        Task<FenYe<DictType>> GetDictType(FenYe<DictType> fenYe, string? name, int? status, string? createname, string? starttime, string? endtime);

        //添加字典类型信息
        Task<int> AddDictType(AddDictTypeDto addDictTypeDto);

        //根据id查询字典类型信息
        Task<DictType> GetDictTypeById(int id);

        //修改字典类型信息
        Task<int> UPdateDictType(UpdateDictTypeDto updateDictTypeDto);

        //删除字典类型信息
        Task<int> DeleteDictType(int id);

        //查询所有字典类型
        Task<List<DictType>> GetType();
    }
}
